package com.luhe.musicscore.ui.factory;

import com.luhe.musicscore.ui.UserObject;


import javax.swing.*;
import javax.swing.tree.DefaultMutableTreeNode;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.lang.reflect.Field;

public class PopMenuFactory {

    //从节点生成弹出菜单，点击的jtree节点
    public JPopupMenu createPopupMenuFromNode(DefaultMutableTreeNode treeNode) {

        JPopupMenu menu=new JPopupMenu();

        //反射节点的属性
        UserObject userObject = (UserObject) treeNode.getUserObject();



        return menu;
    }
}
